#include <QtGui/QApplication>
#include "dbusemit.h"

#include <QDBusConnection>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    if (!QDBusConnection::sessionBus().isConnected()) {
         qWarning("Cannot connect to the D-Bus session bus.\n"
                  "Please check your system settings and try again.\n");
         return 1;
    }

    Dbusemit w;
    w.show();
    return a.exec();
}
